home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 109
/
Vol 109.iso
/
games
/
stepp000.swf
/
scripts
/
frame_1212
/
PlaceObject2_2636_210
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2008-11-12
|
2KB
|
46 lines
onClipEvent(enterFrame){
if(eval("/Variables:FeuParti") == true)
{
}
if(Key.isDown(Key.RIGHT) and eval("/Variables:PositionFusee") < 120)
{
set("/Variables:PositionFusee",eval("/Variables:PositionFusee") + 20);
setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) + 20);
setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) + 2);
if(eval("/Variables:FeuParti") == false)
{
setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) + 20);
setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) + 2);
}
}
if(Key.isDown(Key.LEFT) and -120 < eval("/Variables:PositionFusee"))
{
set("/Variables:PositionFusee",eval("/Variables:PositionFusee") - 20);
setProperty("../Portail/Mains", _X, getProperty("../Portail/Mains", _X) - 20);
setProperty("../Portail/Mains", _rotation, getProperty("../Portail/Mains", _rotation) - 2);
if(eval("/Variables:FeuParti") == false)
{
setProperty("../Portail/Feu", _X, getProperty("../Portail/Feu", _X) - 20);
setProperty("../Portail/Feu", _rotation, getProperty("../Portail/Feu", _rotation) - 2);
}
}
if(Key.isDown(Key.DOWN) and 0 < eval("/Variables:PositionHauteur"))
{
set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") - 20);
setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) + 20);
if(eval("/Variables:FeuParti") == false)
{
setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) + 20);
}
}
if(Key.isDown(Key.UP) and eval("/Variables:PositionHauteur") < 180)
{
set("/Variables:PositionHauteur",eval("/Variables:PositionHauteur") + 20);
setProperty("../Portail/Mains", _Y, getProperty("../Portail/Mains", _Y) - 20);
if(eval("/Variables:FeuParti") == false)
{
setProperty("../Portail/Feu", _Y, getProperty("../Portail/Feu", _Y) - 20);
}
}
}